package com.shen.pojo.triangle;

/**
 * Author:shen
 * CreateDate:2020/4/29.
 * Function:
 */
public class Triangle {
    private int side01;
    private int side02;
    private int side03;

    public Triangle() {
    }

    public Triangle(int side01, int side02, int side03) {
        this.side01 = side01;
        this.side02 = side02;
        this.side03 = side03;
    }

    public  boolean isTangle(){
        boolean isflag=false;
        if(this.side01>=this.side02&&this.side01>=this.side03){
            isflag=this.side01<(this.side02+this.side03)? true:false;
        }
        if(this.side02>=this.side01&&this.side02>=this.side03){
            isflag=this.side02<(this.side01+this.side03)? true:false;
        }
        if(this.side03>=this.side01&&this.side03>=this.side02){
            isflag=this.side03<(this.side01+this.side02)? true:false;
        }
        return isflag;
    }


}
